﻿using System;
using System.Text;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using com.tiyma.components;
using System.Text.RegularExpressions;

namespace com.tiyma.web
{
    public partial class Test : System.Web.UI.Page
    {
        public string m_pic_url = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
         
            ////string t_html = NetSiteCatchManager.ReadUrl("http://www.d9cn.org/d9cnbook/28/28774/11559137.html", System.Text.Encoding.GetEncoding("gbk"));
            ////Response.Write(t_html);
            //string t_chapter_name = "第两千零二十三章";
            //t_chapter_name = com.tiyma.common.SystemUtil.ChangeChapterName(t_chapter_name);
            //Response.Write(t_chapter_name);

            string t_text = "我是<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br><br>中国人";

            t_text = Regex.Replace(t_text, "<[/]*(?=br)[^>]*?>[&nbsp;]*?", "<br>", RegexOptions.IgnoreCase | RegexOptions.Compiled);

            Response.Write(t_text);
          
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
           
        }
    }
}
